
<% form_tag do%>
<div id="item_title">
	縦:
</div>	
	<%if @order_item.area_y != 0%>
	<%= text_field_tag :area_y , "#{@order_item.area_y}",:size => 4%> CM
	<%else%>
	<%= text_field_tag :area_y , '',:size => 4%> CM
	<%end%>
<div id="item_title">
	横:
</div>	
	<%if @order_item.area_x != 0%>
	<%= text_field_tag :area_x , "#{@order_item.area_x}",:size => 4%> CM
	<%else%>
	<%= text_field_tag :area_x , '',:size => 4%> CM
	<%end%>
	<div id="section_line"></div>
	<div id="back_forward">
	<a href="javascript:history.back(-1)"><img src="/images/btn_back_01.gif" class="back"></a>
	<%= image_submit_tag("btn_next_01.gif",:onclick => "return verify(this.form);")%>
	</div>
<%end%>

<script type="text/javascript">
	function verify(form) {
		if(form.area_y.value == "") {
			alert("縦に数字を入力してください");
			form.area_y.focus();
			return false;
		}
		if(form.area_x.value == "") {
			alert("横に数字を入力してください");
			form.area_x.focus();
			return false;
		}
		return true;
	}
</script>